package com.cj.http;

import com.cj.models.ResultModel;
import com.cj.services.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test {

    @Autowired
    TestService testService;

    @RequestMapping(path = "/test",method = {RequestMethod.GET,RequestMethod.POST})
    public ResultModel test(){
        this.testService.testNum();
        return new ResultModel("success","test");
    }
}
